ScxV6Object.PropertyOverride Method
Gets or sets a template property override.
Parameters
- ObjectId
The identifier of the object in the template. - FieldName
The name of the field to test
Returns
True if the property is overidden,False otherwise.
Remarks
Property overrides are used in templates to allow the value of selected properties to be set at the instance and not at the template.
The PropertyOverride method allows external programs to read and write property overrides on a template.
Calling PropertyOverride on a non-template object will generate an error.
The following example written in VB.NET shows how to set property overrides.
Note: The code fragment assumes that the template "PointTemplate", and point "PointTemplate.Point" already exist in the database.
Dim Obj As ScxV6DbClient.ScxV6Object
Dim TemplateObj As ScxV6DbClient.ScxV6Object
' Find the objects
Obj = Svr.FindObject("PointTemplate")
TemplateObj = Svr.FindObject("PointTemplate.Point")
' Allow point in instance to have a different scale
Obj.PropertyOverride( TemplateObj.ID, "FullScale" ) = True
Obj.PropertyOverride( TemplateObj.ID, "ZeroScale" ) = True